@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .sub-title {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {line-height: 16px;}
.multiselect--active {z-index: 1000 !important;}
.el-dialog__footer{text-align: center;}
.el-select{width: 100%;}
.el-dialog__header{background: linear-gradient(to right,#00a2e8 ,#99d9ea )}
.el-dialog__header .el-dialog__title{color: #FFF;}
.el-dialog__header .el-dialog__close{color: #FFF}

.el-descriptions-item__label,.el-descriptions-item__content{
  line-height: 28px;
}
a{color:#1890ff}
a:hover{color:#ff9292}

.el-pagination {
  overflow: auto;
}


//user css
.app-container {
  .card-box{
    .card-header{
      display: flex;
      justify-content: space-between;
      gap: 10px;
      font-size: 14px;
    }
    .more-operator{
      float: right;
      cursor: pointer;
      color:#1890ff;
    }
    margin-top: 10px;
    .prop-item {
      text-align: left;
      font-size: 14px;
      line-height: 20px;
      color: #333;
      margin-bottom: 10px;
      min-height: 20px;
      line-height: 20px;
      display: flex;
      &.weighty{
        .prop-name,.prop-value {
          font-weight: 500;
          font-size: 16px;
        }
      }

      .prop-name {
        display: block;
        text-align: right;
        width: 70px;
        font-weight: 400;
        flex-shrink: 0;
      }

      .prop-value {
        display: block;
        margin-left: 15px;
        text-align: left;

        .success{
          color: #13ce66;
        }
        .danger{
          color: #ff4949;
        }
      }
    }
  }

  .icon-btn{
    margin-left: 10px;
    line-height: 20px;
  }
}


@media (max-width: 800px) {
  .app-container{
    padding: 10px;
  }
  .el-form{
    .el-form-item{
      width: 100%;
    }
    &.query-form{
      .el-form-item{
        input{
          padding: 15px;
        }
      }
      .el-form-item:first-child{
        width: calc(100% - 115px);
      }
      .el-form-item.button-group{
        width: 105px;
        margin-right: 0px;
        .el-button--mini{
          padding: 7px;
          span{
            display: none;
          }
        }
      }
    }
  }

  .el-message-box{
    width: 90%;
  }
  .el-dialog{
    width: 90%;

    &.smooth{
      border-radius: 15px;
      .el-dialog__header{
        border-radius: 15px 15px 0 0;
      }
    }
    &.dialog-flex{
      width: 100%;
      min-height: 100%;
      padding: 0;
      margin: 0!important;
    }
  }

  .app-container{
    .card-box{
      .el-card__header{
        font-size: 14px;
        .success{
          color:#67c23a;
        }
        .danger{
          color:  #ff4949;
        }

        padding: 10px;
        .main-title{
          display: inline-block;
          font-weight: 500;
        }
        .sub-title{
          display: inline-block;
          margin-left: 10px;
          font-size: 14px;
          font-weight: 400;
          color: #a4a4a4;
        }
        .right{
          float: right;
        }
      }
      .el-card__body{
        padding: 10px;
        .el-descriptions-item__container{
          font-size: 14px;
        }

        .query-form {
          .el-form-item {
            input {
              padding: 10px;
              width: 140px;
            }
          }
        }
      }
      .card-footer{
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #ddd;
        padding-top: 10px;
        gap: 15px;

        .el-button,.el-dropdown{
          width: 100%;
          flex: 1;
          height: 35px;
          border-radius: 25px;
        }
        > .el-button,.el-dropdown{
          max-width: 25%;
        }
      }
    }
  }

  .el-tabs .app-container{
    padding: 0px;
  }

  .el-empty{
    .el-empty__image{
      width: 140px;
    }
  }
}

